package cool.webstudy.admin.constant.enums.rescode;

import lombok.extern.slf4j.Slf4j;

/**
 * @author 莫振双
 * @date 2025/1/18 17:31
 * @description: 赛事相关返回码枚举
 */
@Slf4j
public enum CompetitionResCodeEnum implements BaseResCodeEnum{
    RC_ERROR_CREATE("110001","赛事创建失败！"),
    RC_ERROR_UPDATE("110002","赛事更新失败！"),
    RC_ERROR_DELETE("110003","赛事删除失败！"),
    RC_COMPETITION_NOT_EXIST("110004","赛事不存在！"),
    RC_ERROR_QUERY("110005","赛事查询失败！"),
    RC_ERROR_INITIALIZE("110006","赛事初始化失败！"),
    RC_ERROR_INITIALIZED("110007","赛事已初始化！"),
    RC_ERROR_INITIALIZING("110008","赛事正在初始化！"),
    RC_ERROR_READY_FOR_COMP("110009","赛事已就绪！"),
    RC_ERROR_IN_THE_COMP("110010","赛事正在进行！"),
    RC_ERROR_END_THE_COMP("110011","赛事已结束！"),
    RC_ERROR_PAUSE("110012","赛事已暂停！"),
    RC_ERROR_IP_TEAM_MISMATCH("110013","IP数量与队伍数量不匹配！"),
    RC_ERROR_UPDATE_STATUS("110014","赛事状态更新失败！"),
    RC_ERROR_NOT_IN_THE_COMP("110015","当前赛事不在进行中！"),
    RC_ERROR_COMP_NOT_TODAY("110016","当前赛事不在今天，无法完成初始化！"),
    RC_ERROR_SERIALIZE_PARAM("110017","序列化参数失败！"),
    RC_ERROR_UPDATE_CURRENT_ROUND_COUNT("110018","更新当前回合数失败！"),
    ;
    private String code;
    private String msg;
    CompetitionResCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    @Override
    public String code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
